package com.rpc.client;

import com.rpc.api.bean.User;
import com.rpc.api.service.IHelloService;
import com.rpc.api.service.IUserService;

public class Client {

    public static void main(String[] args) {
        IHelloService helloService = new RpcProxyClient().clientProxy(IHelloService.class);
        System.out.println(helloService.sayHello("sdfsdf"));
        IUserService userService = new RpcProxyClient().clientProxy(IUserService.class);
        userService.study("java");

        System.out.println(helloService.saveUser(new User("张三",23)));

    }
}
